package com.kfh.ybracelet.bean;

import android.os.Parcel;
import android.os.Parcelable;

import java.util.ArrayList;
import java.util.List;

/**
 * Created by Aaron on 16/9/20.
 */
public class AliIdBean implements Parcelable {

    private List<InputsEntity> inputs;

    public List<InputsEntity> getInputs() {
        return inputs;
    }

    public void setInputs(List<InputsEntity> inputs) {
        this.inputs = inputs;
    }

    public class InputsEntity {

        private ImageEntity image;

        private ConfigureEntity configure;

        public ImageEntity getImage() {
            return image;
        }

        public void setImage(ImageEntity image) {
            this.image = image;
        }

        public ConfigureEntity getConfigure() {
            return configure;
        }

        public void setConfigure(ConfigureEntity configure) {
            this.configure = configure;
        }

        public class ImageEntity {
            private int dataType;
            private String dataValue;

            public int getDataType() {
                return dataType;
            }

            public void setDataType(int dataType) {
                this.dataType = dataType;
            }

            public String getDataValue() {
                return dataValue;
            }

            public void setDataValue(String dataValue) {
                this.dataValue = dataValue;
            }
        }

        public class ConfigureEntity {
            private int dataType;
            private String dataValue;

            public int getDataType() {
                return dataType;
            }

            public void setDataType(int dataType) {
                this.dataType = dataType;
            }

            public String getDataValue() {
                return dataValue;
            }

            public void setDataValue(String dataValue) {
                this.dataValue = dataValue;
            }
        }
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeList(this.inputs);
    }

    public AliIdBean() {
    }

    protected AliIdBean(Parcel in) {
        this.inputs = new ArrayList<InputsEntity>();
        in.readList(this.inputs, InputsEntity.class.getClassLoader());
    }

    public static final Parcelable.Creator<AliIdBean> CREATOR = new Parcelable.Creator<AliIdBean>() {
        @Override
        public AliIdBean createFromParcel(Parcel source) {
            return new AliIdBean(source);
        }

        @Override
        public AliIdBean[] newArray(int size) {
            return new AliIdBean[size];
        }
    };
}
